<!DOCTYPE html>
  <html>
  <head>
      <meta charset="utf-8">
      <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
      <title>title</title>
      <link rel="stylesheet" type="text/css" href="../css/api.css"/>
      <style>
          body{

          }
          #wrap{
background: #ededed;  padding-top: 0px;
          }
          .fxx{background-color: #ffffff;padding: 15px;}
          .renshu{color: #9e9e9e;font-size: 12px;line-height: 25px}
          .wxm{line-height: 30px}
      </style>
  </head>
  <body>
    <div id="wrap">
<div class="fxx">

<div class="renshu">你将发消息给<span id="rs"></span>位朋友</div>
<div class="wxm" id="user"> </div>
</div>
</div>
  </body>
  <script type="text/javascript" src="../script/api.js"></script>
  <script type="text/javascript">



      apiready = function(){
//   $api.html($api.byId('rs'),api.pageParam.n);
//   $api.html($api.byId('user'),api.pageParam.u);

        var winHeight = api.winHeight;
               h=winHeight-50-api.safeArea.top- api.safeArea.bottom -56

               $api.css($api.byId('wrap'),'min-height:'+h+'px;');

               api.ajax({
            url:localStorage.getItem('domain') + "/home/News/show/id/"+api.pageParam.id+".html",
           method: 'get',

               },function(ret,err){
console.log( JSON.stringify( ret   ) );
                 $api.html($api.byId('rs'),ret.show.title);
             $api.html($api.byId('user'),ret.show.user);

})



      };
  </script>
  </html>
